// src/main/java/com/example/qqviewspringboot/dto/DynamicDTO.java

package com.example.qqviewspringboot.dto;

import java.util.List;

public class DynamicDTO {
    private Long id;
    private Long userId;
    private String content;
    private String createdAt;
    private List<String> imageUris;
    private String avatarUri;
    private String publisherName;

    // 构造方法
    public DynamicDTO(Long id, Long userId, String content, String createdAt, List<String> imageUris, String avatarUri, String publisherName) {
        this.id = id;
        this.userId = userId;
        this.content = content;
        this.createdAt = createdAt;
        this.imageUris = imageUris;
        this.avatarUri = avatarUri;
        this.publisherName = publisherName;
    }

    // Getters 和 Setters
    public Long getId() {
        return id;
    }

    public Long getUserId() {
        return userId;
    }

    public String getContent() {
        return content;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public List<String> getImageUris() {
        return imageUris;
    }

    public String getAvatarUri() {
        return avatarUri;
    }

    public String getPublisherName() {
        return publisherName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public void setImageUris(List<String> imageUris) {
        this.imageUris = imageUris;
    }

    public void setAvatarUri(String avatarUri) {
        this.avatarUri = avatarUri;
    }

    public void setPublisherName(String publisherName) {
        this.publisherName = publisherName;
    }
}
